package com.eveinfo.display.setting;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.eveinfo.R;
import com.eveinfo.tools.EveInfoMenu;

public class SettingView extends Activity {
	
	private final Activity activity;
	
	public SettingView() {
		this.activity = this;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.setting);
		
		Button characters = (Button) findViewById(R.id.BSettingCharacters);
		characters.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				EveInfoMenu.displayView(activity, EveInfoMenu.View.SETTING_CHARACTERS);
			}
		});

		Button cache = (Button) findViewById(R.id.BSettingCache);
		cache.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				EveInfoMenu.displayView(activity, EveInfoMenu.View.SETTING_CACHE);
			}
		});

		Button view = (Button) findViewById(R.id.BSettingView);
		view.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				EveInfoMenu.displayView(activity, EveInfoMenu.View.SETTING_VIEW);
			}
		});

		Button download = (Button) findViewById(R.id.BSettingDownload);
		download.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				EveInfoMenu.displayView(activity, EveInfoMenu.View.SETTING_DOWNLOAD);
			}
		});
	}
	
}